package com.ruoyi.mixuebingcheng.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】业务对象 shopping_cart
 *
 * @author ruoyi
 * @date 2023-10-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ShoppingCartBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 购物车状态（0：表示订单已完成，清空，1：表示商品加入购物车，未付款）
     */
    @NotNull(message = "购物车状态（0：表示订单已完成，清空，1：表示商品加入购物车，未付款）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodId;

    /**
     * 该商品的数量
     */
    @NotNull(message = "该商品的数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long num;

    /**
     * 该条记录的总金额
     */
    @NotNull(message = "该条记录的总金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal amount;

    private Long orderId;
    private String name;
    // 温度
    private String ice;

    // 杯型大小
    private String size;

    // 甜度
    private String sweet;

    private String imgUrl;

    private BigDecimal price;
}
